package com.xscha.soyue.common.core.exception;

import com.xscha.soyue.common.core.exception.status.SoyErrorCode;

public class SoyException extends Exception {

    private static final long serialVersionUID = 1L;

    private SoyErrorCode errorCode;

    public SoyException() {
        super();
    }

    public SoyException(SoyErrorCode errorCode) {
        this.errorCode = errorCode;
    }

    public SoyException(String message, SoyErrorCode errorCode) {
        super(message);
        this.errorCode = errorCode;
    }

    public SoyException(String message, Throwable cause, SoyErrorCode errorCode) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public SoyException(Throwable cause, SoyErrorCode errorCode) {
        super(cause);
        this.errorCode = errorCode;
    }

    public SoyErrorCode getErrorCode() {
        return errorCode;
    }

}
